//
//  drawerViewController.h
//  Delicious
//
//  Created by gy on 16/5/5.
//  Copyright © 2016年 gy. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface drawerViewController : UIViewController
@property (nonatomic, assign) BOOL isOpen;
@property (nonatomic, strong) UIView *mainView;
@property (nonatomic, strong) UIGestureRecognizer *pan;
//初始化抽屉  leftVC(左边的抽屉)  MainVC(主界面)
- (instancetype)initWithLeftVC:(UIViewController *)leftVC mainVC:(UIViewController *)mainVC;
//打开
- (void)open;
//关闭
- (void)close;
//切换主视图
- (void)setNewMainVC:(UIViewController *)newMainVC;

@end
